package com.example.restful.exception;

/**
 * Copyright(C), 2020-2021, AmbroseCdMeng
 * FileName:    BusinessException
 * Author:      AmbroseCdMeng
 * Date:        2021/2/118:40
 * Description: 自定义异常类
 * History:
 * <author>     <time>      <version>       <desc>
 * 作者姓名     修改时间        版本号           描述
 */
public class BusinessException extends  Exception{
    private int code;
    private String message;

    public BusinessException(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }
}
